package com.app.service;

import com.app.model.UserModel;
import javax.security.auth.login.LoginException;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService {
    UserModel wxLogin(String code, String mobileCode, HttpServletRequest request) throws LoginException;

    void updateUserInfo(UserModel user);

    UserModel updateAvatar(UserModel model);

    UserModel getUserByOpenid(String mobile);

    UserModel selectUserById(Integer id);

    List<UserModel> selectAll(Integer page, Integer limit, String keyword);

    int selectCount(String keyword);

    int selectAllCount();
}
